#！encoding:utf-8
from suds.client import Client
from parser_data import read_


def suds_client():
	hello_client = Client("http://127.0.0.1:8081/?wsdl")
	result = hello_client.service.say_hello('Tom','5')
	result = result.string
	print hello_client
	print result

	# print dir(result)
	# print type(result)


def make_client():
    from soaplib.client import make_service_client,debug
    from server_ import XinLuoService
    # debug(True)

    client = make_service_client('http://localhost:8081/', XinLuoService())
    return client


if __name__ == '__main__':
	client = make_client()
	data = read_("./test.xml")
	a = client.xl_receiver('c_home_page',data)
	# # print client
	print a
	# suds_client()
